﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using fideeraSoft.DAO;
using fideeraSoft.Entities;
using fideeraSoft.DAOimpl;

namespace fideeraSoft.BO
{
    public class RemitoEntradaXLoteBO
    {
        RemitoEntradaXLoteDAO remitoEntradaXLoteDao;

        public RemitoEntradaXLoteBO()
        {
            remitoEntradaXLoteDao = new RemitoEntradaXLoteDAOSQLimpl();
        }

        public void altaRemitoEntrada_X_Lote(RemitoEntrada remitoEntrada, Lote lote, int idRemitoEntradaXLote)
        {
            this.remitoEntradaXLoteDao.altaRemitoEntrada_X_Lote(remitoEntrada, lote, idRemitoEntradaXLote);
        }

        public int buscarNuevoUltimoIdRemitoEntradaXLoteEnBD()
        {
            return remitoEntradaXLoteDao.buscarNuevoUltimoIdRemitoEntradaXLoteEnBD();
        }


        public List<RemitoEntrada_X_Lotes> getListaRemitoEntradaXLotesPorID(string strDataId)
        {
            return this.remitoEntradaXLoteDao.getListaRemitoEntradaXLotesPorID(strDataId);
        }

        public void eliminarRemitoEntradaXLotePorID(int id)
        {
            this.remitoEntradaXLoteDao.eliminarRemitoEntradaXLotePorID(id);
        }

        public void eliminarTodosLosRemitosEntradaXLoteEnDb()
        {
            remitoEntradaXLoteDao.eliminarTodosLosRemitosEntradaXLoteEnDb();
        }
    }
}
